import api from '../api';

const getListAsync = async (data) => {
  return await api.postWithToken({
    command: 'I_ApplyEmployee_GetApplyEmployees',
    data
  });
};

const confirmAsync = async (id) => {
  return await api.postWithToken({
    command: 'I_ApplyEmployee_Confirm',
    data: {
      id: id
    }
  });
};

const deleteAsync = async (id) => {
  return await api.postWithToken({
    command: 'I_ApplyEmployee_Delete',
    data: {
      id: id
    }
  });
};

export default {
  getListAsync,
  confirmAsync,
  deleteAsync,
}